const state = {
    theme: String
}

const getters = {
    theme: () => state.theme

}

const actions = {
    changeTheme({ commit }, theme) {
        commit(types.THEME, theme)
    }
}
const mutations = {
    [types.THEME](state, theme) {
        state.theme = theme
    }

}
export default {
    state,
    getters,
    actions,
    mutations
}